
import pyshark
from Behinder import *

cap=pyshark.FileCapture("swt1.pcapng",display_filter="http.content_length")
tmp=[]
for c in cap:
    for i in c:
        try:
            tmp.append(i.file_data)
        except:
            continue

decrypter = PHP(key='eaf815fcc1dd7afb')
for i in tmp:
    try:
        data = decrypter.decrypt_req_payload(i.encode())
        print(data)
    except:
        try:
            data = decrypter.decrypt_res_payload(i.encode())
            print(data)
        except:
            continue